﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ModifyPasswordForm.ascx.cs"
    Inherits="DMS.Web.Common.Controls.ModifyPasswordForm" %>
<table cellpadding="1" cellspacing="2" border="0" width="100%">
    <tr id="trOldPwd" runat="server">
        <td width="70px">
            <nobr>
                旧密码：
            </nobr>
        </td>
        <td>
            <asp:TextBox ID="txtOldPWD" runat="server" TextMode="Password" MaxLength="16"></asp:TextBox>
            <asp:RequiredFieldValidator ID="frvOldPWD" runat="server" ControlToValidate="txtOldPWD"
                ErrorMessage="请输入！" Display="Dynamic"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td width="70px">
            <nobr>
                新密码：
            </nobr>
        </td>
        <td>
            <asp:TextBox ID="txtNewPWD" runat="server" TextMode="Password" MaxLength="16"></asp:TextBox>
            <asp:RequiredFieldValidator ID="frvNewPWD" runat="server" ControlToValidate="txtNewPWD"
                ErrorMessage="请输入！" Display="Dynamic"></asp:RequiredFieldValidator>
                <asp:CustomValidator
                    ID="flvNewPWD" runat="server" ErrorMessage="请输入6-16位密码。" ClientValidationFunction="CheckLength" ControlToValidate="txtNewPWD"></asp:CustomValidator>
        </td>
    </tr>
    <tr>
        <td>
            <nobr>
                再输入：
            </nobr>
        </td>
        <td>
            <asp:TextBox ID="txtNewPWDConfirm" runat="server" TextMode="Password" MaxLength="16"></asp:TextBox>
            <asp:RequiredFieldValidator ID="frvNewPWDConfirm" runat="server" ControlToValidate="txtNewPWDConfirm"
                ErrorMessage="请输入！" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="fcvNewPWDConfirm" runat="server" ControlToValidate="txtNewPWDConfirm"
                ControlToCompare="txtNewPWD" ErrorMessage="两次输入的密码不一致！" Display="Dynamic"></asp:CompareValidator>
        </td>
    </tr>
</table>
<script language="javascript" type="text/javascript">
<!--
    function CheckLength(val, args) {
        if (args.Value.length < 6) {
            args.IsValid = false;
        }
    }
//-->
</script>